#! /usr/bin/python

start = 10**15

for n in range(1010101070, 1414213564, 100):
    square = n*n
    if (square/10000)%10 == 8 and (square/1000000)%10 == 7 and (square/100000000)%10 == 6 and (square/10000000000)%10 == 5 and (square/1000000000000)%10 == 4 and (square/100000000000000)%10 == 3 and (square/10000000000000000)%10 == 2:
	print n, square
